Introduce fast path for the widely used marker operation.
authorDmitry Antipov <dmantipov@yandex.ru>
Fri, 6 Jul 2012 05:07:44 +0000 (09:07 +0400)
committerDmitry Antipov <dmantipov@yandex.ru>
Fri, 6 Jul 2012 05:07:44 +0000 (09:07 +0400)
commitf13c961749be7f5ab568470be202ff73f6d19af6
tree1993693c444dc951cb23127db66770023b7e7f9f
parent6fab95aca2cfc6815145bda86185ef97878d2bc9
Introduce fast path for the widely used marker operation.
* alloc.c (build_marker): New function.
* lisp.h (build_marker): New prototype.
* buffer.c (clone_per_buffer_values, Fmake_indirect_buffer): Use it.
* composite.c (autocmp_chars): Likewise.
* editfns.c (buildmark): Remove.
(Fpoint_marker, Fpoint_min_marker, Fpoint_max_marker)
(save_restriction_save): Use build_marker.
* marker.c (buf_charpos_to_bytepos, buf_bytepos_to_charpos): Likewise.
* window.c (save_window_save): Likewise.
src/ChangeLog
src/alloc.c
src/buffer.c
src/composite.c
src/editfns.c
src/lisp.h
src/marker.c
src/window.c